import { Base } from "../core/Base";

/**
 * @memberof w
 */
class View extends Base{
    constructor(opts={}){
        super(opts);
        this._range=any(opts.range,[0,0,1,1]);//将窗口空间规划到0-1的空间范围内，分别代表xmin,ymin,xmax,ymax。缺省[0,0,1,1]占据整个屏幕空间。
        this._cameraIndex=any(opts.cameraIndex,0);
        this._visibility=any(opts.visibility,true);
    }
    get range(){
        return this._range;
    }
    set range(v){
        this._range=v;
        return this;
    }
    get cameraIndex(){
        return this._cameraIndex;
    }
    set cameraIndex(v){
        this._cameraIndex=v;
        return this;
    }
    get visibility(){
        return this._visibility;
    }
    set visibility(v){
        this._visibility=v;
        return this;
    } 
}
export {View}